package com.oms.module.admin.controller.systemsettings;

import com.oms.common.ResponseDTO;
import com.oms.module.admin.domain.entity.BuyerConfigEntity;
import com.oms.module.admin.domain.entity.CapitalParameterEntity;
import com.oms.module.admin.service.CapitalParameterService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author zhanghailong QQ38592077
 * @Description TODO
 * @Date 2020/6/25 16:01
 */
@RestController
@RequestMapping("/system/capitalParameter")
@Api("管理端资金设置管理 @author 张海龙")
public class CapitalParameterController {

    @Autowired
    CapitalParameterService capitalParameterService;

    @PostMapping("/getList")
    public ResponseDTO<List<CapitalParameterEntity>> getList(){
        List<CapitalParameterEntity> list = capitalParameterService.list();
        return ResponseDTO.succData(list);
    }
}
